﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jiubang.Communication.Server.RequestRouter {
    /// <summary>
    /// 对应于某一对象的请求处理接口
    /// </summary>
    public interface IRequestHandler {
        /// <summary>
        /// Handler的注册标识
        /// </summary>
        byte HandlerId { get; }

        /// <summary>
        /// 接受一条待处理的信息，将返回的信息发送到发送接口
        /// </summary>
        bool Accept(RequestContext context);
    }
}
